<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="format-detection" content="telephone=no">
        <title>加载中</title>
        <script type="text/javascript">
          var _ssa = _ssa || {};
          (function () {
              _ssa.websiteId = '73eb04d177e645228a7e51c733ac12dd';
              _ssa.base_url = 'http://wsa.cloudytrace.cn';
              _ssa.api = 'ctwsa-sa.gif';
              var _ssa_protocol = 'https:' == document.location.protocol ? 'https' : 'http';
              var _ssa_script = _ssa_protocol + '://' + 'script.cloudytrace.cn/wsa/common' + '/'+ 'ctwsa-sa.js';
              var _scripts = document.getElementsByTagName('script');
              for (var i = 0; i < _scripts.length; i++) {
                  if (_scripts[i].src == _ssa_script) {
                      return;
                  }
              }
              var _script = document.createElement('script');
              _script.type = 'text/javascript';
              _script.async = true;
              _script.src = _ssa_script;
              var _s = _scripts[0];
              _s.parentNode.insertBefore(_script, _s);
          })();
        </script>    
    </head>
    <body class="over">
        <img class="waiting" src="" />
        <script src="js/common.js"></script>
        <script>
            function getUrlArgs(){
                var args = {},
                    query = location.search.substring(1),
                    pairs = query.split("&"),
                    pos = idx = argname = val = null;
                    
                for(var i=0; i<pairs.length; i++){
                    pos = pairs[i];
                    idx = pos.indexOf("=");
                    if(idx == -1) continue;
                    argname = pos.substring(0, idx);
                    val = decodeURIComponent(pos.substring(idx + 1));
                    args[argname] = val;
                }
                
                return args;
            };
            var param = getUrlArgs(),
                query = location.search.substring(1);
            if (window.navigator.userAgent.indexOf("MSIE")>=1 || !!window.ActiveXObject || "ActiveXObject" in window){
                alert('非常抱歉，时间有限，暂不支持IE浏览器，请使用其它浏览器打开');
            }else{
                try{
                	var ua = window.navigator.userAgent.toLowerCase(); 
                    if(ua.match(/MicroMessenger/i) == 'micromessenger'){
                        if(location.href.indexOf("wx_openid") == -1) {
                            location.href = Suningmatch.wxLogin + encodeURIComponent(location.href.replace("loading","topic_index"));
                        }
                    }else{ 
                        location.href = Suningmatch.DI.soaTopic + "?topicId="+param.topicId;
                    } 
                }catch(e){
                	console.log(e)
                }
            }
            
        </script>
    </body>
</html>
